package com.ruoyi.hospital.mapper;

import com.ruoyi.hospital.domain.BaseQuery;
import com.ruoyi.hospital.domain.Dept;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface HospitalDeptMapper {

    List<Dept> findAll();

    Dept findById(Long deptId);

    void update(Dept dept);

    void save(Dept dept);

    void delete(Long id);

    /**
     * 模糊查询
     * @param name
     * @return
     */
    Dept findByName(String name);

    /**
     * 全部数量
     * @param query
     * @return
     */
    Integer queryCount(BaseQuery query);

    /**
     * 分页查询到的list
     * @param query
     * @return
     */
    List<Dept> queryData(BaseQuery query);
}
